package com.sise.parkinglot.controller;

import com.sise.parkinglot.bean.CodeMsg;
import com.sise.parkinglot.entity.Recharge;
import com.sise.parkinglot.entity.UserRecord;
import com.sise.parkinglot.service.IUserRecordService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author ZJ
 */
@RestController
@RequestMapping("/parkinglot/user-record")
public class UserRecordController {

    @Resource
    private IUserRecordService userRecordService;

    @PostMapping("/queryUserRecordList")
    public CodeMsg<List<UserRecord>> queryUserRecordList(@RequestBody Map<String, Object> map) {
        return userRecordService.queryUserRecordList(map);
    }
}
